From: Keir Fraser Date: Tue, 16 Oct 2007 16:36:28 +0000 (+0100) Subject: Clean up a little bit after the TLB/cache-flush changes. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14847^2~37 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=842b3954029cdb726ba9ebc4d2cc81cf8dc457dd;p=xen.git Clean up a little bit after the TLB/cache-flush changes. Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/hvm/vmx/vtd/intel-iommu.c b/xen/arch/x86/hvm/vmx/vtd/intel-iommu.c index f8e3b09d68..b63b0217d0 100644 --- a/xen/arch/x86/hvm/vmx/vtd/intel-iommu.c +++ b/xen/arch/x86/hvm/vmx/vtd/intel-iommu.c @@ -499,7 +499,7 @@ static int inline iommu_flush_iotlb_psi( DMA_TLB_PSI_FLUSH, non_present_entry_flush); } -void flush_all(void) +void iommu_flush_all(void) { struct acpi_drhd_unit *drhd; struct iommu *iommu; @@ -1775,7 +1775,7 @@ int iommu_setup(void) INIT_LIST_HEAD(&hd->pdev_list); /* start from scratch */ - flush_all(); + iommu_flush_all(); /* setup clflush size */ x86_clflush_size = ((cpuid_ebx(1) >> 8) & 0xff) * 8; @@ -1958,7 +1958,7 @@ int iommu_suspend(void) struct iommu *iommu; int i = 0; - flush_all(); + iommu_flush_all(); for_each_drhd_unit ( drhd ) { @@ -1993,7 +1993,7 @@ int iommu_resume(void) struct iommu *iommu; int i = 0; - flush_all(); + iommu_flush_all(); init_vtd_hw(); for_each_drhd_unit ( drhd ) diff --git a/xen/include/asm-x86/flushtlb.h b/xen/include/asm-x86/flushtlb.h index 97a60e6b25..7e67ec23b4 100644 --- a/xen/include/asm-x86/flushtlb.h +++ b/xen/include/asm-x86/flushtlb.h @@ -104,13 +104,13 @@ void flush_area_mask(cpumask_t, const void *va, unsigned int flags); #define flush_tlb_local() \ flush_local(FLUSH_TLB) #define flush_tlb_one_local(v) \ - flush_area_local((const void *)(v), FLUSH_TLB|1) + flush_area_local((const void *)(v), FLUSH_TLB|FLUSH_LEVEL(1)) /* Flush specified CPUs' TLBs */ #define flush_tlb_mask(mask) \ flush_mask(mask, FLUSH_TLB) #define flush_tlb_one_mask(mask,v) \ - flush_area_mask(mask, (const void *)(v), FLUSH_TLB|1) + flush_area_mask(mask, (const void *)(v), FLUSH_TLB|FLUSH_LEVEL(1)) /* Flush all CPUs' TLBs */ #define flush_tlb_all() \